<template>
    <el-dialog
        title="提示"
        :visible.sync="dialogData.dialogVisible"
        width="30%"
        align='left'
        :before-close="handleClose">
        <span>
            <Search :queryParams="dialogData.formData" @formCommHandler='formCommHandler'></Search>  
        </span>
    </el-dialog>
</template>
<script>
import Search from '@/components/baseComponents/Search'
export default {
    name: 'EleDialog',
    props: {
        dialogData: {
            type: Object,
            default: () => {}
        }
    },
    data() {
        return { 
        }
    },
    methods: {
        formCommHandler(data) {
            this.$emit('formCommHandler',data)
        },
        handleClose(done) {
            // .then(_ => {
                done();
            // })
            // .catch(_ => {});
        }

    },
    components:{
        Search
    }
}
</script>
<style>

</style>

